package cn.base.day07;

public class Animal {
    private String type;
    private int age;
    private double weight;

    public Animal(String type, int age, double weight) {
        this.type = type;
        this.age = age;
        this.weight = weight;
    }

    public Animal() {
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
    public void eat(){
        System.out.println("吃饭了！！！");
    }
}
